﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BLToolkit.Mapping;
using BLToolkit.DataAccess;
using Entities.Admin;

namespace Entities.ThuQuy
{
    public class BaoCao:BaseEntity<BaoCao>
    {
         [MapField("MaBaoCao"), PrimaryKey]
        public string MaBaoCao { get; set; }
        public string TenBaoCao { get; set; }
        public float SoTienThu { get; set; }
        public float SoTienChi { get; set; }
        public DateTime NgayLap { get; set; }
        [MapField("NguoiLap")]
        public string IdNguoiLap { get; set; }
        [MapIgnore]
        public string TenNguoiLap
        {
            get
            {
                NhanVien nv = NhanVien.Objects.GetById(IdNguoiLap);
                if (nv != null)
                    return nv.TenNhanVien;
                else return "";
            }
        }
        public string NoiDung { get; set; }
    }
}
